:root {
  --doc-bg: #f6f7fb;
  --doc-surface: #ffffff;
  --doc-elevated: #fcfdff;
  --doc-border: #e5e8f0;
  --doc-text: #1b1f2a;
  --doc-muted: #5a6275;
  --doc-accent: #ff3d71;
  --doc-accent-dark: #d72f5d;
  --doc-radius: 12px;
  --doc-font: "Inter", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --gap-section: 32px;
  --pad-v: 24px;
  --pad-h: 28px;
  --code-bg: #fff5f7;
  --code-border: #ffd5df;
  --shadow-soft: 0 16px 50px rgba(15, 23, 42, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.doc-body {
  margin: 0;
  min-height: 100vh;
  background: var(--doc-bg);
  color: var(--doc-text);
  font-family: var(--doc-font);
  font-size: 15px;
  line-height: 1.7;
  overflow: auto;
  -webkit-font-smoothing: antialiased;
}

img {
  border: #b7c2c873 1px solid;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  height: 50%;
  margin: auto;
}

a {
  color: var(--doc-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--doc-accent-dark);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.doc-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--doc-accent);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

.doc-logo__mark {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.doc-logo__sub {
  opacity: 0.8;
}

.doc-project {
  font-weight: 600;
  color: var(--doc-muted);
}

.doc-search__shortcut {
  font-size: 12px;
  color: var(--doc-muted);
  border: 1px solid var(--doc-border);
  border-radius: 8px;
  padding: 2px 8px;
}

.doc-action {
  border: 1px solid var(--doc-border);
  border-radius: 999px;
  background: var(--doc-surface);
  padding: 8px 14px;
  font-weight: 600;
  font-size: 13px;
  color: var(--doc-text);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.doc-action:hover {
  transform: translateY(-1px);
  border-color: var(--doc-accent);
  color: var(--doc-accent);
  box-shadow: 0 8px 24px rgba(255, 61, 113, 0.2);
}

.doc-action--primary {
  background: var(--doc-accent);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(255, 61, 113, 0.35);
}

.doc-action--primary:hover {
  background: var(--doc-accent-dark);
  box-shadow: 0 16px 32px rgba(215, 47, 93, 0.35);
}

.doc-shell {
  display: flex;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 24px 28px 48px;
  gap: 24px;
}

.doc-sidebar {
  width: 220px;
  position: sticky;
  top: 24px;
  align-self: flex-start;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding-right: 8px;
}

.doc-sidebar__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--doc-muted);
  margin-bottom: 12px;
  font-weight: 600;
}

.doc-tree-group {
  border: 1px solid var(--doc-border);
  border-radius: 14px;
  background: var(--doc-surface);
  margin-bottom: 12px;
  overflow: hidden;
}

.doc-tree-group summary {
  padding: 10px 14px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
  color: var(--doc-text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.doc-tree-group summary::-webkit-details-marker {
  display: none;
}

.doc-tree-group summary::after {
  content: "▾";
  font-size: 12px;
  color: var(--doc-muted);
  transition: transform 0.2s ease;
}

.doc-tree-group[open] summary::after {
  transform: rotate(180deg);
}

.doc-tree {
  list-style: none;
  margin: 0;
  padding: 0 0 14px;
  display: flex;
  flex-direction: column;
}

.doc-tree li a {
  display: block;
  padding: 6px 18px 6px 22px;
  color: var(--doc-muted);
  font-size: 13px;
  border-left: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.doc-tree li a:hover,
.doc-tree li a.is-active {
  color: var(--doc-accent);
  border-color: var(--doc-accent);
  background: rgba(255, 61, 113, 0.08);
}

.doc-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.doc-hero {
  background: var(--doc-surface);
  border-radius: calc(var(--doc-radius) + 4px);
  padding: 24px var(--pad-h);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--doc-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doc-hero__tag {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 61, 113, 0.12);
  color: var(--doc-accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.doc-hero__header {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.doc-hero__header h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.015em;
}

.doc-hero__header p {
  margin: 8px 0 0;
  color: var(--doc-muted);
  font-size: 14px;
  margin-top: 4px;
  max-width: 620px;
}

.doc-content {
  background: var(--doc-surface);
  border-radius: calc(var(--doc-radius) + 2px);
  border: 1px solid var(--doc-border);
  padding: var(--pad-v) var(--pad-h);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: var(--gap-section);
}

.doc-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.doc-section__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--doc-muted);
}

.doc-section__title {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.01em;
}

.doc-section__subtitle {
  margin: 0;
  color: var(--doc-muted);
  font-size: 16px;
}

.doc-paragraph {
  margin: 0;
  color: #33384a;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.doc-card {
  border-radius: 18px;
  border: 1px solid var(--doc-border);
  background: var(--doc-elevated);
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.doc-card__title {
  margin: 0 0 6px;
  font-weight: 600;
}

.doc-card__meta {
  margin: 0;
  font-size: 14px;
  color: var(--doc-muted);
}

.doc-callout {
  border-radius: 14px;
  padding: 18px 22px;
  background: rgba(255, 61, 113, 0.08);
  border: 1px solid rgba(255, 61, 113, 0.2);
  font-weight: 600;
  color: var(--doc-accent);
}

.doc-image {
  border: 1px dashed var(--doc-border);
  border-radius: 16px;
  padding: 12px;
  text-align: center;
  background: var(--doc-elevated);
}

.doc-image__caption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--doc-muted);
}

.doc-list {
  margin: 0;
  padding-left: 24px;
  color: #3f4356;
}

.doc-list--unordered {
  list-style: disc;
}

.doc-code-block {
  margin: 0;
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: 16px;
  padding: 14px 16px;
  font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
  font-size: 13px;
  color: #b01f3f;
  box-shadow: inset 0 1px 2px rgba(176, 31, 63, 0.15);
}

.doc-code-block code {
  white-space: pre;
  display: block;
}

.doc-quote {
  margin: 0;
  padding: 18px 24px;
  border-left: 6px solid var(--doc-accent);
  background: rgba(255, 61, 113, 0.05);
  border-radius: 0 14px 14px 0;
  color: #3c4052;
  font-style: italic;
}

.doc-footer {
  text-align: center;
  padding: 24px 0 0;
  color: var(--doc-muted);
  font-size: 14px;
}

.code-block {
  display: block;
  padding: 16px;
  border-radius: 12px;
  background: #f6f7fb;
  border: 1px solid #e5e8f0;
  font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
  font-size: 14px;
  line-height: 1.5;
  overflow-x: auto;
}

.json-key {
  color: #d72f5d;
  font-weight: 600;
}

.json-string {
  color: #0e7a6b;
}

.json-comment {
  color: #8c96b0;
  font-style: italic;
}

.csv-header {
  color: #d72f5d;
  font-weight: 600;
}

.csv-value {
  color: #0e7a6b;
}

.csv-comment {
  color: #8c96b0;
  font-style: italic;
}